using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using Box2D.XNA;
namespace TurbaconPhone
{
    public static class Physics
    {
        public static World World;
        public static int numPosIters = 10, numVelIters = 10;
        public static float WorldScale = 10;
        public static void Initialize()
        {
            World = new World(new Vector2(0, 0), true);
            World.ContactListener = new TurbaconContactListener();
            World.WarmStarting = false;
        }
        public static void Advance(float stepSize)
        {
            World.Step(stepSize, numPosIters, numVelIters);
        }
    }
}
